package com.jm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jm.model.Account;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface AccountMapper extends BaseMapper<Account> {

    int decAccount(@Param("userId") String userId, @Param("amount") BigDecimal amount, @Param("oldAmount") BigDecimal oldAmount);
}
